Added function 3 for parsing a string into a number, no bugs.