Introduce get_by_id in Activity, replace newlines with spaces