Java: usando String.indexOf () para verificar o caractere de apóstrofo

Eu estou tentando analisar uma seqüência de caracteres e eu preciso usar substring para fazê-lo. A string contém os caracteres de apóstrofo. Minha pergunta é, como eu uso temp para obter String.indexOf para obter o índice do caractere de apóstrofo?

//temp variable currently contains the string 'hello' including the apostrophe character
String finalWord = temp.substring(temp.indexOf('''), temp.indexOf('.')); 

questionAnswers(2)

yourAnswerToTheQuestion