Method to get SelectionObject from string