将一段文本中的所有逗号替换为句号，并在每个新句子的开头添加大写字母。
"This is a sample sentence, which contains a comma in the middle. Another sentence is here, which also has a comma."
This is a sample sentence. Which contains a comma in the middle. Another sentence is here. Which also has a comma.