I came across this little piece of code from Ruby on Rails. Can some one please take time in explaining this - all_account_id = Rails.configuration.lsr_api_account_id[:prod] + account_id.split(",").map(&:strip) Especially the last piece .split(",").map(&:strip)