 In this lesson we're going to talk about that how to extract filename and filename extension from a filename string. For example, let's say that we have a filename string, for example, california grills.mp3 and that we want to extract filename and extension from it. First, what we're gonna do is to use our string, so we'll say my filename dot and we're gonna use partition method and inside our method as an argument we'll put dot as separator for our string. And this method will return to us separated filename, separator and file extension. Of course, you can extract them in some variables. For example, let's make variable filename to keep our filename, let's make variable separator to keep our separator and let's make extension to keep information about our extension. Now let's call our string my filename and let's make partition again. And now inside filename variable we have our filename and inside extension we have our extension. That's all in this lesson. Thanks for watching. See you. Bye-bye.