In any other language that allows negative numbers to be an inverse index for $left and $right, something like $right(a,-1) would return a. Is it intentional that mIRC returns $null in this case? This only seems to happen for strings where the length is 1.