A bunch of utility functions to improve JS's String class