Remove up,down and strlen function for unnecessary.