Clean RegexUtils code
Invert a few String.equals() to avoid NPE
Fix indentation