another two string manipulation functions