This code reads a number on a String and returns its numeric value.