Refactorin to take in charge string identifiers