var string='url("images/bgtr.svg") top right no-repeat, url("images/bgbl.svg") bottom left no-repeat, url("images/overlay.png"), linear-gradient(45deg, #5f796b, #3a4e59, #2f394e);'
how to replace linear-gradient(45deg, #5f796b, #3a4e59, #2f394e)
with different characters? it might not always be 'linear gradient'