How To Replace Part Of A String In Javascript