Based upon the original code, it could've been written as:
menu nicklist {
Modes
.Owner:/mode # $+(+,$str(q,20)) $$1-20
.Deowner:/mode # $+(-,$str(q,20)) $$1-20
.Protect:/mode # $+(+,$str(a,20)) $$1-20
.Deprotect:/mode # $+(-,$str(a,20)) $$1-20
.Op:/mode # $+(+,$str(o,20)) $$1-20
.Deop:/mode # $+(-,$str(o,20)) $$1-20
.Halfop:/mode # $+(+,$str(h,20)) $$1-20
.Dehalfop:/mode # $+(-,$str(h,20)) $$1-20
.Voice:/mode # $+(+,$str(v,20)) $$1-20
.Devoice:/mode # $+(-,$str(v,20)) $$1-20
}
By the way, jonesy44's got the right idea of using $str, but with an alias, which is not what the op has intended initially.