Added string format function
Performance tuning string format