In case there were new lines on the CSS string, the parser threw a warning on an empty line with \n. The original check $kv === '' didn't catch " \n". Applying trim to a CSS rule should be safe because whitespace at the end or beginning of a rule is meaningless. [MAILPOET-5540]