to a computer a password should just be an array of bytes and a space is just "00100000"
if they don't allow spaces, it suggests they're doing something like string concatenation that directly inserts the password into a bit of code, which is a very bad idea