String utilities for JavaScript