to add if trimmed to nothing condition