Use charSXP comparison instead of strcmp in do_*get