Update TextParser.js

This version allows for leading spaces on newlines