created string-class; added a static reverse method