Consecutive duplicate character removing functionality added to StringUtils