Convert numbers as string to numbers