fix for trailin spaces