remove trailing whitespace
specify current domain when retrieving domains