Octave adds spaces with strcat In Octave I run these commands: I get this result: Instead of what I expected: strcat to me sounds like “concatenate strings”. A space is a valid character, so adding a space should be OK. Matlab has the same behaviour, so it’s probably intended. I find it counter intuitive. Does this behavior makes sense? Answer