modify the string method

modify the string method