Insert character in different file formats