Added space preserve functionality
Merge pull request #31 from cristen/master

Added handling of whitespaces with preserve option