convert strings to numbers