Core extension for String.