Added function for parsing user input on delimiter