Add functions to String prototype