Removed some redundant code from String
Unified the string formatting functions