handling null bytes
added comment
initial unit test
handling initial null