VBScript Replace text in a string

Replace text in a string

<html>
<body>

<script type="text/vbscript">
text="Hello boy!"
document.write(Replace(text, "boy", "friend"))
</script>

</body>
</html>