Pocket Gems interview question

generic string manipulation