Lots of little string manipulation functions

Done for GENEVAL