Moved string format function to string_utils.js