open file return string instead of doc object