Added option to select the delimiter for the input string