print string and trim(string) in test to check alignment