reverted string error detection