Removes trailing whitespaces from license template