Refactored ParameterParser...,

-added string helper class to avoid repetition