Added string manipulation functions