Issue #2948700 by vaplas, martin107: Casting $text value to string in responseContains/responseNotContains methods