Convert String to Long without using Built In functions