How to trim a string at the beginning and at the end

Hi,

Can I know how to trim a string at the beginning and at the end? 

For example ;

"   This is my text  "

(there is blank space at the beginning and at the end)

I want to trim the input so that the user enters so that I can check whether it already existed in the database or not. 

Solution

YOu can trim a string using built in trim functions. There are 3 mode of Trim are available. You can use more than one Trim as per your requirement.

mvp_badge
MVP

Guys, how many.times do we need to provide the same answer to a question? 

Agree ! , Before posting questions if we can search properly in forum, most of the questions are already answered 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.