make sure to add '\0' to the end of the string (#15)