Two car offenders and two shoplifters were among defendants from York and North Yorkshire that have been sentenced recently by magistrates.