Fix the text length to a valid one