Tati della traduzione how to remove spaces at the beginning and end of the string

Hi Goku, this will remove all spaces at the beginning and end, or just 1 space.
That is, if there are 2, 5, 10 blank characters, does it strip them all?