Helpful extension methods for the String JavaScript object