new std.array.replaceLast

moved string imports into static if