[NUCCORE-1095] Update StringUtils docs and use String.replace char
version where possible