Text this: Trajectory planning and collision avoidance for an autonomous racing car