Parsing user inputs into coordinates