You don't even need to do that much. If `value` is a String, `<% value.each do |sub| %>` will just loop through it once.