Removed redundant comments and blank lines between function calls to replace_loc outside of for loop