find text in a string and do stuff with it