MORE fixes to edition builder. linefeeds were not being treated as whitespace. plugged more holes where string index out of bounds was not checked / handled