When you use /debug -i aliasname, $1 returns the whole debug line rather than just the first word.