J.W. updating make-text-parser, such that it should fail gracefuly when length(t) is greater then length(str).