Change the regex in such a way so that user's name is stripped automatically.

- Thanks to @technicalpickles
Merge pull request #1050 from prathamesh-sonpatki/strip-whitespace

Strip whitespace from user's name