Use `.empty()` to check for an empty string   `if (TrimString(*line).empty())`