Simplify Str::convertSnake Function