#1 solved
Although, there is still improvement needed, i.e stripping the input from all whitespaces