Unified the string formatting functions