Classify and train on user agent strings