conversion now removes trailing white spaces