Add check for trailing whitespace.