Bug fix maxlength on default value for text control

when default value and malength set to 0, value is substr to ""