 So one of the things we've talked about is how a string is just an array of characters. It's just a collection of characters But one of the things that we can do with this is because we're dealing with a data type is we can treat it like an Object and that's actually what we've been doing From the beginning every time we've worked with a string, you know take a look at that dot char adder that dot length Those are known as class Methods that we've been working with you know someone already built them someone did something in the past that Designed out you know how to work this so that's pretty nice in my opinion So let's take a look at some of the other cool things that we can do with it for example. We've got the Split method and what happens with the split method is it'll take whatever's inside here It's parameter and it will actually turn the string into An array of strings a string array. So if you think about it, we've got Java C sharp Python We got three words all separated by spaces. That's the kind of thing. I want to focus in on all of a sudden Well, what happens if I wanted to turn them into? Individual strings, you know, I wanted just Java and just C sharp and just Python What I can do is I can use the dot notation dot notation To then say I have this class method I want to work with and I want to separate them. I want to split them Based on the space character space Character remember it is important to remember. It's a space character. So what happens is suddenly I get a string Array called tokens and it's no different than me coming in here and saying Java C sharp Python the only difference is you know, I had to do that. I had to separate it from there And then I can interact with it as I need to One of the other things we can do inside of a string is something known as a regular Expression also kind of referred to as regex And how this works is we're no longer working with just a string, but we're talking about The pattern of text so say for example, you know the word the sentence Java is fun or Java is hard They both match sort of sort of the same pattern where it's Java is Blank so what we could do is we could actually utilize another class method called matches And how matches works as it expects Some string That has a pattern to it and again with regular expressions. Java already understands how regular expressions sort of work So we say Java Star now you're looking at that dot that dot says that There we go that dot says I want any any character in the world after Java as long as my String starts with Java and as you can see what it'll do is it'll come back with a boolean true or false true or false if my string my string Matches that and we can do a lot of other things with that say for example. I'm doing a phone number Number validator. I want to make sure that my customer types in the right phone number. Well, guess what? We look at something like this 910 8 6 7 5 3 0 9 Whoa, whoa, whoa, and I need to look at that and I can say well here's sort of the regex Pattern that I'm looking for I'm looking for a digit in fact I'm looking for three digits in a row that I'm looking for a dash And I'm looking for then three more digits and then I'm looking for another dash and then guess what I'm looking for for more digits We can start to apply this everywhere We can actually utilize regex when we're dealing with our replace all and replace First methods as you can see we can kind of take this little structure here and we're saying well I want to go ahead and if I find the dollar sign the plus sign or the Pound sign I want to go ahead and just replace it completely with three ends And so we see if we look at our string. I've got a plus sign a dollar sign and a pound sign hashtag Replace each instance with three and a Three ends So as you can see we have a large subset of these that we can start to build from and work with and I won't go over all of them But I encourage you to kind of practice with them because regex Syntax knowing regular expressions is actually very powerful Be you a system administrator or a programmer because everybody kind of has to deal with text