unified string formatting