added a string function