1. A computer-implemented method for classifying messages, comprising: obtaining strings from messages sent to an application; calculating metrics for each message which represent distances between each message's string and strings of other messages; and grouping the messages according to the metrics into a plurality of groups.