Added method to string prototype