Made more changes from suggestions.

Moved sub_event data into an array.
Removed tests for is_space.
Changed is_space to use built in function.