def TrailingWhitespaceRemover(line, file_path, line_number):
  """Strips out trailing whitespaces from the specified line."""
  stripped_line = line.rstrip() + '\n'
  if line != stripped_line:
    print('Removing trailing whitespace in %s:%s' % (file_path, line_number))
  return stripped_line