Trim license shortnames

Apparently some templates put a \n to the end.

Change-Id: I6a8733bfb2e63a1284422bd9da7efadc26c26bae