Fixes issue with newlines not being stripped