Implement basic string formatting