Here you can find the source of chopPrefix(String x, String prefix)
public static String chopPrefix(String x, String prefix)
//package com.java2s; //License from project: Open Source License public class Main { public static String chopPrefix(String x, String prefix) { if (x.startsWith(prefix)) return x.substring(prefix.length()); else// ww w. ja v a2s. co m return null; } }