Fixed a bug where lengthcheck was casted as int when data-lengthreq did not contain a dash.