error on line 37

syntax error - missing curly brace after defining the function.
logic error - person who previously wrote the code had an intention to
split. Code said to join. Replaced split with join.