Optimize: Use `new String` to avoid unnecessary string object creation