Move isNewline to traits_ex