remove trailing white space
repair bug with invalid choices for dict menu