V string = ‘This is a string’ I re:‘string$’.search(string) print(‘Ends with string.’) string = string.replace(re:‘ a ’, ‘ another ’) print(string)