add extensions with null character at end