created a fuction that removes leading and precceding spaces
Merge pull request #55 from Serame/master

solution for removing spaces
Closes #36