use regexp to test for attribute surrounded by whitespace instead of actual space char