java remove character from string at character 5 code example Example: javascript remove first character from string var newStr = str.substring(1);