Applied optimized get string and cast nulls to char pointers to branch files