Java tutorial
//package com.java2s; public class Main { public static String cleanFilename(String filename) { if (filename.startsWith("/")) return filename.substring(1); return filename; } }