Added trimDirectiveWhitespaces.