Capitalizes a string.