Adding extra method to check the response using regex