I have a similar setup:
function cheat() {
cheatcommand=$1
shift;
IFS='+'
str="$*"
if [ "$#" -eq 0 ]; then
curl cht.sh/$cheatcommand
else
curl cht.sh/$cheatcommand/$str
fi
}