Adds method to return a number in a sting