Good idea!

There are more places in the code that can benefit from find_last_of, maybe i can have a look at it later.