Remove String switch only available in Java >=7