javascript if first letter is / then remove code example Example: how to remove first character from string in javascript str = str.substring(1);