Negate character in different file formats