fixed negation error on checking for string handler