A few string lib optimizations (#1812)
* A few string lib optimizations
* Undo problematic changes
StripExtension changes caused regressions with dots in folder names
string.GetPathFromFilename changes caused severe performance loss when given a file name over a file path.
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>