Class to manipulate code strings