This will change the string in filename to have a new extension

replaceFileExtension(filename, extension)

Arguments

filename

string to convert

extension

new extension

Value

Filename with original extension deleted, replaced by provided extension