<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=Strings_%28Manipulation%2C_Common_Operations%29</id>
	<title>Strings (Manipulation, Common Operations) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=Strings_%28Manipulation%2C_Common_Operations%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=Strings_(Manipulation,_Common_Operations)&amp;action=history"/>
	<updated>2026-06-15T08:50:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.omnivision.website/index.php?title=Strings_(Manipulation,_Common_Operations)&amp;diff=131&amp;oldid=prev</id>
		<title>Mr. Goldstein: Created page with &quot;=== 3.5.2 Strings (Manipulation, Common Operations) === You&#039;ve already learned that a &#039;&#039;&#039;String&#039;&#039;&#039; is a reference data type that holds a sequence of characters, like words or sentences. But what can you &#039;&#039;do&#039;&#039; with strings? How do you change them or get parts of them?  &#039;&#039;&#039;String Manipulation&#039;&#039;&#039; refers to all the different ways you can work with and change strings in your program. Because text is such a common type of data, programming languages provide many useful tools...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=Strings_(Manipulation,_Common_Operations)&amp;diff=131&amp;oldid=prev"/>
		<updated>2025-07-08T12:49:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== 3.5.2 Strings (Manipulation, Common Operations) === You&amp;#039;ve already learned that a &amp;#039;&amp;#039;&amp;#039;String&amp;#039;&amp;#039;&amp;#039; is a reference data type that holds a sequence of characters, like words or sentences. But what can you &amp;#039;&amp;#039;do&amp;#039;&amp;#039; with strings? How do you change them or get parts of them?  &amp;#039;&amp;#039;&amp;#039;String Manipulation&amp;#039;&amp;#039;&amp;#039; refers to all the different ways you can work with and change strings in your program. Because text is such a common type of data, programming languages provide many useful tools...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 3.5.2 Strings (Manipulation, Common Operations) ===&lt;br /&gt;
You&amp;#039;ve already learned that a &amp;#039;&amp;#039;&amp;#039;String&amp;#039;&amp;#039;&amp;#039; is a reference data type that holds a sequence of characters, like words or sentences. But what can you &amp;#039;&amp;#039;do&amp;#039;&amp;#039; with strings? How do you change them or get parts of them?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;String Manipulation&amp;#039;&amp;#039;&amp;#039; refers to all the different ways you can work with and change strings in your program. Because text is such a common type of data, programming languages provide many useful tools (often as built-in functions or methods) for handling strings.&lt;br /&gt;
&lt;br /&gt;
Here are some common operations you can perform on strings:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Concatenation (Joining Strings):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* This means putting two or more strings together to form a new, longer string.&lt;br /&gt;
#* Often done using the &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; symbol.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;quot;Hello&amp;quot; + &amp;quot; &amp;quot; + &amp;quot;World&amp;quot;&amp;lt;/code&amp;gt; would result in &amp;lt;code&amp;gt;&amp;quot;Hello World&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Length (Getting the Size):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Finding out how many characters are in a string.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; The length of &amp;lt;code&amp;gt;&amp;quot;Computer&amp;quot;&amp;lt;/code&amp;gt; is 8.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Accessing Characters (Getting Parts of the String):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Just like with arrays, you can often get a specific character from a string using its &amp;#039;&amp;#039;&amp;#039;index&amp;#039;&amp;#039;&amp;#039;. Remember, indexing usually starts from 0!&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; In &amp;lt;code&amp;gt;&amp;quot;Apple&amp;quot;&amp;lt;/code&amp;gt;, the character at index 0 is &amp;lt;code&amp;gt;&amp;#039;A&amp;#039;&amp;lt;/code&amp;gt;, and at index 4 is &amp;lt;code&amp;gt;&amp;#039;e&amp;#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Substring (Getting a Piece of the String):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Extracting a smaller piece (a &amp;quot;substring&amp;quot;) from a larger string. You usually specify where the piece starts and where it ends.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Taking the substring from &amp;lt;code&amp;gt;&amp;quot;Programming&amp;quot;&amp;lt;/code&amp;gt; starting at index 3 for 4 characters might give you &amp;lt;code&amp;gt;&amp;quot;gram&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Searching (Finding Text):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Checking if a string contains another specific piece of text.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Is &amp;quot;apple&amp;quot; found inside &amp;quot;pineapple&amp;quot;? Yes. Is &amp;quot;banana&amp;quot; found inside &amp;quot;pineapple&amp;quot;? No.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Replacing (Changing Text):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Finding a specific part of a string and changing it to something else.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Replacing all &amp;quot;e&amp;quot;s with &amp;quot;x&amp;quot;s in &amp;quot;Hello&amp;quot; would result in &amp;quot;Hxllx&amp;quot;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Changing Case (Uppercase/Lowercase):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Converting all letters in a string to uppercase or lowercase.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Converting &amp;quot;Hello World&amp;quot; to uppercase results in &amp;quot;HELLO WORLD&amp;quot;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Trimming (Removing Extra Spaces):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* Removing any extra spaces from the beginning or end of a string.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Trimming &amp;lt;code&amp;gt;&amp;quot;   hello   &amp;quot;&amp;lt;/code&amp;gt; would result in &amp;lt;code&amp;gt;&amp;quot;hello&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Strings are very flexible and powerful, and these manipulation techniques are used all the time in programming, whether you&amp;#039;re processing user input, formatting messages, or working with text files.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Bibliography:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;W3Schools - Python String Methods&amp;#039;&amp;#039;&amp;#039;: https://www.w3schools.com/python/python_strings_methods.asp&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GeeksforGeeks - String in C++&amp;#039;&amp;#039;&amp;#039;: https://www.geeksforgeeks.org/cpp/strings-in-cpp/ (Discusses string operations)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Wikipedia - String (computer science)&amp;#039;&amp;#039;&amp;#039;: https://en.wikipedia.org/wiki/String_(computer_science)&lt;/div&gt;</summary>
		<author><name>Mr. Goldstein</name></author>
	</entry>
</feed>