How to modify variable to replace spaces in string

I wish to replace the breadcrumbs with images, and wish to assign the

image the breadcrumb value $bc.title.



How can I replace the spaces in $bc.title with underscores so that

“About our company” becomes “About_our_company” ?



–san