1. 좌우 공백제거 trim(str)2. 단어 중간중간까지 공백제거 str.replaceAll("\\s", "");※ openjdk 1.8버전의 경우 replace 함수안에 replaceAll 기능이 있으니 헷갈리지 말고 쓸 것