adds a prototype method on string