be consistent about removing spaces from the end of strings