unless str.blank? || str.nil?

Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>