Converts a string template into a buildString call.