(fix) fixes multiple buildings being added at a time, also removes trailing spaces