Java tutorial
//package com.java2s; public class Main { public static String filterFirstZero(String str) { if (!str.contains(".")) { return str.replaceFirst("^0*", ""); } return str; } }