fixing key split error when having more than 2 spaces