Fixing the way getProperty uses regex.