improved haiku validator to strip out leading and trailing whitespace around content