The string profiling pattern