fixed string detection issue causing typeerror if payload is unmodified