Added some functions for string operations