string.popLeading ("*****$33.33", '*')
» "$33.33"
string.popLeading ("###34.23#", '#')
» "34.23#"
Note that it leaves the ending pound sign in place; only leading characters are removed.
string.popLeading ("No leading characters here!", '#')
» "No leading characters here!"
No leading characters found, so the string is returned unchanged.