Added open terminal here
Added remove trailing spaces