in reply to Smoothing text input

$string =~ s/^\s+//; split /\s+/, $string;
should work just fine. (updated).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ