Tweaked test for right character