Activated carbons are one of promising groups of materials for reversible storage of hydrogen by physisorption. However, the heat of hydrogen adsorption in such materials is relatively low, in the range of about 4-8 kJ/mol, which limits the total amount of hydrogen adsorbed at P=100 bar to approximately 2 wt % at room temperature and approximately 8 wt % at 77 K. To improve the sorption characteristics the adsorbing surfaces must be modified either by substitution of some atoms in the all-carbon skeleton by other elements, or by doping/intercalation with other species. In this letter we present ab initio calculations and Monte Carlo simulations showing that substitution of 5%-10% of atoms in a nanoporous carbon by boron atoms results in significant increases in the adsorption energy (up to 10-13.5 kJ/mol) and storage capacity ( approximately 5 wt % at 298 K, 100 bar) with a 97% delivery rate.