STAMFORD — A 20-year-old Bridgeport man, who pleaded guilty to a string of burglaries in Fairfield County towns, will have to serve five years in prison after making a number of guilty pleas in Stamford court.

Xavier Medel pleaded guilty to crimes in in Greenwich, Darien and Westport — five burglaries and stealing a car. He also admitted to violating his probation during a hearing before Judge Richard Comerford at the Stamford courthouse Thursday. He is scheduled to be sentenced on March 25.

Assistant state’s attorney Michelle Manning said Medel wasn’t initially charged with all the burglaries that he eventually admitted to police he committed. She told Comerford that because of his young age and the severity of the charges, the state believed it reached an adequate disposition in the case.

Comerford told the youth that the maximum jail penalty to all the crimes he was pleading guilty to added up to 99 years behind bars.

Medel also received a 15-year suspended jail sentence and three years probation. If he violates probation, he could be returned to jail for the entire suspended sentence.

Manning said there were other co-defendants in the case, who police have earlier identified as juveniles. There was no word on the progress of those cases.

Criminal Defense Attorney Kevin Black said Medel’s case was one of his most troubling because his client was so smart and has so much promise. “He has a lot of potential and I hope he gets the help he needs,” he said.

Four of the burglaries Medel pleaded guilty to occurred at residential homes at night when the residents were home.

jnickerson@stamfordadvocate.com