added the method to create a string