check for a letter in a string in scala code example Example: scala length of string var palindrome = "Dot saw I was Tod"; var len = palindrome.length();