If the value returned in a number, echo will do that to you. echo treats a numeric value as a color value, and then continues to look for the actual text to output. Example:
/command
Output
/echo Hello
Hello
/echo 0
Insufficient parameters
/echo -a Hello
Hello (Active window)
/echo 0 Hello
Hello (black lettering)