Substring formatting.