Now say for example, I want to get a list of all of the letter A's from "Hello there, how are you? I'm feeling great today." Then I want to replace the A's I got to the letter C so that it would be "Hello there, how cre you? I'm feeling gceat today." Here's something I tried:
function testingFunction(s)
if type(s) == "string" then
s:split("a")
end
end
Thanks!

3 comments
Strings are immutable, so you are just returning the same input given with no changes. Do
return (s:gsub("a", "c"))to return the new string. Also, use type annotations instead of a typeof check.ok thanks for correcting
Thanks! Also, quick question @incapaz, what are type annotations and how are they used?