Text this: Robustness evaluation and enhancement of LLMs in code generation: an empirical study