added STRIP_WHITESPACE option (default on)