You will probably be offered a deferred prosecution agreement if it is a petit theft and this is the very first charge you have ever gotten. You should hire an attorney to help you with this and represent you in the criminal case. In a dpa, the defendant does a number of community service hours, pays fines and costs, and is basically on probation until all is completed, then the case is dropped. Consult with a local attorney.