Trimming title input