trim the string first before checking if it is not blank.