File renaming implemented - badly. Attempted to remove whitespace breaks program. Needs work...