I\'ve tried a few things already but they don\'t seem to work for some reason.
Basically what I\'m attempting to do is have a user input a value using the \"Read-host\
You can use:
$answer.replace(' ' , '')
or
$answer -replace " ", ""
if you want to remove all whitespace you can use:
$answer -replace "\s", ""