VBScript Removes spaces from a string

Removes spaces from a string

<html>
<body>

<script type="text/vbscript">
name=" Adam "
document.write("Hello" & trim(name) & "Smith<br>")
document.write("Hello" & rtrim(name) & "Smith<br>")
document.write("Hello" & ltrim(name) & "Smith<br>")
</script>

</body>
</html>