refactored slurm specific parsers into generic string parser class