When @length is equal or larger than zero, this function performs the same as LEFT( LTRIM(RTRIM(@stringtocut)), @length ).When @length is smaller than zero, it returns LTRIM(RTRIM(@stringtocut)) minus the right @length characters.