completed sting function

completed sting function