added a parseToDouble function to parse strings into a list of numbers