Added simple test for nxn_str_chomp()

Added to test/str.c.  Resulted in bug fix to nxn_str_chomp().