fixed the string format prototype function
- cleaned up and ready for submit