Chomp new line in case of long title

Change-Id: I2ece948ff4c7f5b6fdd5405409de3fb0316a1fc9