You can access Ruby string elements in different parts with the help of square brackets []. Within square brackets write the index or string.