jQuery Replace Command

How to remove part of a string variable using the jQuery Replace command.

Initial jQuery Var Value

jQuery Var Value After Replace Command