parsing text to numbers