Fix reading error in the checkItem variant for strings, trailing space
was not stripped...