String methods – trim() and length()

I this post, we will discuss about the string methods – trim() and length(). Let’s understand them one by one with examples. trim(): The method trim() is used to remove leading and trailing white...