getAtomGroupFromString & fixed bug in getAtomStackFromString