Added string manipulation test + refacored xml validation