Fix before dispatch with string test