Calling Methods defined in string class