Fixed regex to java. Header quote not working properly. Added JUnit testing.