Parses a string input into some other type of data. Useful for interpreting real values from a string.