== How to fix it

If you are targeting a runtime version equal or greater than `.NET Core 2.0`, the `string.StartsWith` and `string.EndsWith` overloads are available, with the argument's type being `char` instead of `string`. Thus, an argument of `char` type can be provided.
