The reason is using of string template for parsing server responses using sscanf (default: 3 digit code and response string) - '%d%s'. So, the function parses the response until the first space character is encountered.