rank string error checking

- limit the length of the rank string
- check for valid numeric rank (2..10) when parsing rank string