substrings and cleanup
creating blank arrays