Moved replicated code into a function and fixed a bug with eval not working on '\n\r'
Merge pull request #1 from AustinBurns/master

Created a function to consolidate redundant code and also fixed a bug when evaling ' \n\r" '