formats a specific input text