remove trailing underscores