Fixed string cast in JW.String.capitalize.