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're close. You can strip the whitespace by using the replace method like this:
replace
$answer.replace(' ','')
There needs to be no space or characters between the second set of quotes in the replace method (replacing the whitespace with nothing).