Hey, can anyone help me with this, i need to write a function which replace all tabs and new line character with spaces. remove all leading and trailing whitespaces. remove all but the first consecutive whitespace from the given string. any suggestions anybody??