Rearrange function prototypes
Add test: first and last char
Done get first & last char
Fix typo
Better function signature