strip spaces from start/end of codename