EDITABLE CODE:
LiveDemo: JavaScript String Object : search and replace Methods
Note:The Substring method gets the substring found at position 10,3