Java tutorial
//package com.java2s; public class Main { public static String removePrefixIgnoreCase(String str, String prefix) { if (str != null && str.toLowerCase().startsWith(prefix.toLowerCase())) { return str.substring(prefix.length()); } return str; } }