Strip trailing whitespace from output KAF.