Filtered the original strings so that only type 0, 5, 7 were left. Added a space before all strings.