Executing the rcon command "sv_gametype ctf " should set the gametype to CTF (after a reload). Instead, the default gametype DM gets activated, due to the trailing whitespace.
Leading whitespaces already get trimmed.
-> Trim trailing whitespaces of console command's input data.