Use == rather than === for comparison to blank string, as the latter causes jRuby to trip