Got tired of not having trim() in C so I wrote it