Remove trailing whitespace.
Ensure expanded frame is properly traversed for @list.