Enforcing no whitespace in elements and dimensions