Check if text is there before trimming