in reply to Removing characters
If so, you can use
if ($value eq "") { # contains no characters } [download]