Java tutorial
//package com.java2s; public class Main { /** * Clean up url * * @param url * @return cleaned url */ public static String cleanUrl(String url) { if (url.startsWith("/")) { return url.substring(1, url.length()); } return url; } }