Using indexOf() to do format string matching.