This could be written much more concisely as `return input != null ? input.Trim() : string.Empty;`.
The `string.Empty` means that the caller can skip further null checks.