add NWChem memory options support
change memory to a plain string