Account for options.format when parsing input text, fix some tab/space issues