select ltrim(' 222222 ') as ltrim, length(ltrim(' 222222 ')) as length from dual;
ltrim length --------- ------ 222222 9