This will change the string in filename to have a new extension
replaceFileExtension(filename, extension)
string to convert
new extension
Filename with original extension deleted, replaced by provided extension