Flag string should be trimmed before processing