Refactor shell script to capitalize names/surnames.