limit the length of the tags