added checks for input string format