code: def spliceext(filepath, s):
      
      root, ext = os.path.splitext(safepath(filepath))
      return root + s + ext
docs: Add s into filepath before the extension
  
      Args:
          filepath (str, path): file path
          s (str): string to splice
  
      Returns:
          str