The main reason for hair algae is poor water quality, namely nitrates and phosphates. Easy ways to get rid of it (...eventually...) are to use only RODI water, feed frozen food, not flakes or pellets, do not overfeed, do not overstock with fish, and don't leave your lights on for too long. Regular water changes will also help.