Text this: Financial market imperfections and corporate investments