A shoplifter told magistrates he would never offend again after kicking his drug habit into touch and getting a job.