convenience function for splitting long strings