fix bug #4659: trim white spaces

Signed-off-by: Rakesh Kumar <rakeshkumar4294@gmail.com>
Merge pull request #1431 from rakeshkaundilya/QA_4_3

fix bug #4659: trim white spaces