utilites function of string