predefined string and function patterns with tests and small touchups