1 00:00:00,610 --> 00:00:02,060 - [Instructor] In this Self Check exercise, 2 00:00:02,060 --> 00:00:04,900 we'd like you to test out replacing substrings 3 00:00:04,900 --> 00:00:08,310 by starting with this original string containing spaces 4 00:00:08,310 --> 00:00:11,840 and replacing each space with a space, two dashes, 5 00:00:11,840 --> 00:00:14,410 a greater than sign, and another space. 6 00:00:14,410 --> 00:00:17,040 So, go ahead and pause the video to give that a shot, 7 00:00:17,040 --> 00:00:18,540 then come back for the answer. 8 00:00:22,861 --> 00:00:24,780 Okay, let's go ahead and reveal that. 9 00:00:24,780 --> 00:00:25,720 So as you can see, 10 00:00:25,720 --> 00:00:28,000 we're calling directly on the string literal, 11 00:00:28,000 --> 00:00:30,780 its method replace, and we're going to replace 12 00:00:30,780 --> 00:00:33,930 every space character with the string 13 00:00:33,930 --> 00:00:36,220 that we specified in the problem statement, 14 00:00:36,220 --> 00:00:39,113 and indeed, there are the replacements.