add max length to titles