Here you can find the source of sanitizeBrowserName(String browserName)
private static String sanitizeBrowserName(String browserName)
//package com.java2s; //License from project: LGPL public class Main { private static String sanitizeBrowserName(String browserName) { browserName = browserName.toLowerCase(); // if browser name is 'mobile safari' return 'safari' browserName = browserName.replace("mobile", "").trim(); return browserName; }// w w w .ja v a2 s .c om }