Assuming that I have a string like $foo$bar$baz $5
I have tried to split the string to an array by `$', then remove the first and second elements, and then convert the array to a new string. but I'm wondering if there is a more elegant way to do so?