Fixed error there string parameters were used after the function call had ended.
Merge pull request #59 from msundberg/master

Fixed error there string parameters were used after the function call had ended.