Adding code for string manipulation functions