whitespaces in inputfield now removed. Fixes #271