How to replace first occurrence of string in python

- How to replace only first occurrence of string in python
- How to replace first occurrence of a character in string python
- How to replace first character of string in python
- How to replace first letter of string in python
- How to replace first and last character of string in python
- How to replace text in python
- Given a string return a new string where the first and last chars have been exchanged