Ruby way to check if a string is not blank? March 26, 2023 by Tarik string = "" unless string.to_s.strip.empty? # ... end