Add length parameter to text parser.