Removes the extension