There will be no trains on the Heart of Wales line between Carmarthen, Swansea and Llandrindod Wells for 18 days in May.