return null on empty string file