Added code for stripping the whitespace characters causing  issues .