line with suffix sliced off the end.
string suffixed = "Kameloso"; string stripped = suffixed.stripSuffix("oso"); assert((stripped == "Kamel"), stripped);
immutable line = "harblsnarbl"; assert(line.stripSuffix("snarbl") == "harbl"); assert(line.stripSuffix("") == "harblsnarbl"); assert(line.stripSuffix("INVALID") == "harblsnarbl"); assert(!line.stripSuffix("harblsnarbl").length);
Strips the supplied string from the end of a string.