Mark std.string.strip and its unittests as @safe and pure

I do not mark one of the unittests as safe/pure because it uses unsafe and impure function `core.stdc.stdio.printf`.