The defendant in any misdemeanor case in any of the courts of this State may, with the consent of the court, enter a plea of "nolo contendere" thereto and upon so doing such defendant shall be dealt with in like manner as if he had entered a plea of guilty thereto.
S.C. Code § 17-23-40