only allow tags in lowercase with no leading or trailing whitespace