Move parseMemoryString to utils.common