In this lesson our instructor talks about string. First he discusses string creation, string manipulation, string insertion, and string updates. Then he talks about string deletion, string reversal, string manipulation, incrementing strings, and other lessons.
Strings are a sequence of one or more characters representing human language
A string object holds and manipulates an arbitrary sequence of bytes, typically characters
You will often work with manipulating strings so it's important to understand the basic methods to update, delete, and insert characters in a string
The square brackets or  can be used to find tokens, retrieve characters, retrieve substrings, and even match regular expressions
chop or chomp method allow you to remove characters at the end of the string
The gsub method allows you to match regular expression patterns and replace it with a string
The split method will divide a string into substrings using a delimiter and return them as an array of substrings.
upcase will replace all lowercase letters with uppercase counterparts while downcase will do the reverse.
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.
If you wanted to do three dots, you know it chops off the last one.0698
Again, we use the same sentence, but Ruby is giving us the flexibility to say, "Hey, you know, not only can you get the substring this way; you can do it this way, too--whatever works best for you."0703
For this case, the beginning index starts at 40, but if I go through all these characters--41, 42, 43,...all the way down here, the l is at the 74th indexed value.0718
So, when I call this square brackets, it's going to return me that exact same phrase that we looked at on the last slide.0739
Also, that phrase itself doesn't look that good without the first letter being capitalized, so there is a method called .capitalize, and that will uppercase the first letter of the string.0753
The next thing we're looking at is the string insertion.0772
This is an insert method, and it takes two arguments: it takes an index and a string.0778
That string is typically your double quotes...in your string in there.0789
Of course, you can store that in the object reference and pass that in, too.0795
What this method does is, it allows you to enter the string at a given index.0800
This index can be positive, to start at the beginning index, or negative, to start at the last index.0807
I have two examples: one using the positive index, and the negative index.0818