What is unclear?
16-8-18. If any person shall enter any automobile or other motor vehicle with the intent to commit a theft or a felony, he shall be guilty of a felony and, upon conviction thereof, shall be punished by imprisonment for not less than one nor more than five years, or, in the discretion of the trial judge, as for a misdemeanor.
You enter a car with the intent to commit a theft (either of the car or the contents), you're guilty of a felony.
The only thing that might give him hope is that throwing a misdemeanor loitering charge in may indicate the case against him might be a little weak.
He definitely needs a lawyer.