fix bug #4659: trim white spaces

Signed-off-by: Rakesh Kumar <rakeshkumar4294@gmail.com>