Since we execute the regex twice, once to get the properties and again to extract the name -- i wonder if it's better to remove the whitespace or just execute the regex twice that excludes the whitespace