added trim() to generatedSignature to get rid of \r\n
refactored .trim() on base64 to method
Merge pull request #4 from JonathanMey3r/master

Refactored .trim() to method