文字列の先頭1文字だけ英大文字にするにはstr upcaseを使います。
"sample text" | str capitalize "サンプル text" | str capitalize
実行すると、以下のような画面になります。