Renamed function and created a new helper to join words