Fixed an issue whereby the response check was failing due to additional space/newline character. Have added a trim to ensure the check is sane.