Refined user input parsing for reminder function