[Task] Added dedicated function for input parsing