Now ignores spaces in input.